package bReps;

import javax.vecmath.Color3f;
import javax.vecmath.Point3d;


public class CreateParallelepiped 
{
	protected Point3d [] vertexArray;
	protected int [] indexArray;
	protected Color3f[] color3f;
	
	public CreateParallelepiped()
	{
		vertexArray = new Point3d [8];
		vertexArray[0] = new Point3d(-5.00000000000000E-0001, -5.00000000000000E-0001, -5.00000000000000E-0001);
		vertexArray[1] = new Point3d(5.00000000000000E-0001, -5.00000000000000E-0001, -5.00000000000000E-0001);
		vertexArray[2] = new Point3d(-5.00000000000000E-0001,  5.00000000000000E-0001, -5.00000000000000E-0001);
		vertexArray[3] = new Point3d(5.00000000000000E-0001,  5.00000000000000E-0001, -5.00000000000000E-0001);
		vertexArray[4] = new Point3d(-5.00000000000000E-0001, -5.00000000000000E-0001,  5.00000000000000E-0001);
		vertexArray[5] = new Point3d(5.00000000000000E-0001, -5.00000000000000E-0001,  5.00000000000000E-0001);
		vertexArray[6] = new Point3d(-5.00000000000000E-0001,  5.00000000000000E-0001,  5.00000000000000E-0001);
		vertexArray[7] = new Point3d(5.00000000000000E-0001,  5.00000000000000E-0001,  5.00000000000000E-0001);
		indexArray = new int [36];
		indexArray [0] = 0;
		indexArray [1] = 2;
		indexArray [2] = 3;
		indexArray [3] = 3;
		indexArray [4] = 1;
		indexArray [5] = 0;
		indexArray [6] = 4;
		indexArray [7] = 5;
		indexArray [8] = 7;
		indexArray [9] = 7;
		indexArray [10] = 6;
		indexArray [11] = 4;
		indexArray [12] = 0;
		indexArray [13] = 1;
		indexArray [14] = 5;
		indexArray [15] = 5;
		indexArray [16] = 4;
		indexArray [17] = 0;
		indexArray [18] = 1;
		indexArray [19] = 3;
		indexArray [20] = 7;
		indexArray [21] = 7;
		indexArray [22] = 5;
		indexArray [23] = 1;
		indexArray [24] = 3;
		indexArray [25] = 2;
		indexArray [26] = 6;
		indexArray [27] = 6;
		indexArray [28] = 7;
		indexArray [29] = 3;
		indexArray [30] = 2;
		indexArray [31] = 0;
		indexArray [32] = 4;
		indexArray [33] = 4;
		indexArray [34] = 6;
		indexArray [35] = 2;
		
		color3f = new Color3f [vertexArray.length];
		for (int i = 0; i < color3f.length; i++)
		{
			color3f [i] = new Color3f(0.3f,0.3f,0.3f);
		}
	}
	
	
}
